<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<%@include file="/common/header.jsp"%>
<html>
<head>
    <script type="text/javascript" src="${pageContext.request.contextPath}/script/fusionCharts/JSClass/FusionCharts.js"></script>
    <script type="text/javascript">
        $(function(){
            queryCustomVip();
        });
        function queryCustomVip() {
            var options ={
                url: '<c:url value="/customVip/CustomVipList.do"/>',
                type:'post',
                success:function(resData){
                    var jsonText = resData.xmlData;
                    var CustomVipColumn2D = new FusionCharts(baseUrl+"/script/fusionCharts/Charts/Column2D.swf", "CustomVipColumn2D", "1000", "450");
                    CustomVipColumn2D.setDataXML(jsonText);
                    CustomVipColumn2D.render("CustomVipColumn2D");
                    //折线图
                    var customVipLine = new FusionCharts(baseUrl+"/script/fusionCharts/Charts/Line.swf", "customVipLine", "1000", "450");
                    customVipLine.setDataXML(jsonText);
                    customVipLine.render("customVipLine");
                }
            };
            $("#customVip").ajaxSubmit(options);
        }
    </script>
</head>
<body>
<form id="customVip" name="customVip"  method="post">
    <!-- 查询表单 -->
    <div  class="datagrid-toolbar" border="false"  >
            <span>开始日期:</span>
            <input type="text" id="loc_dt_start" name="loc_dt_start" class="easyui-datebox" data-options="editable:false" value="${lastMonth}"/>
            <span>结束日期:</span>
            <input type="text" id="loc_dt_end" name="loc_dt_end" class="easyui-datebox" data-options="editable:false" value="${currentDate}"/>
            <span>机构号:</span>
            <input id="ins_cd" type="text" name="ins_cd"  class="easyui-textbox"  >
            <span>机构名称:</span>
            <input id="ins_cn_nm" type="text" name="ins_cn_nm"  class="easyui-textbox"/>
            <a href="javascript:void(0)" iconCls="icon-search" class="easyui-linkbutton btn" onclick="queryCustomVip()">查询</a>
            <a href="#" class="easyui-linkbutton btn" iconCls="icon-reload" onclick="resetForm() ">重置</a>
    </div>
    <jiepos:buttonOperateTag menuCode="${menuCode}"></jiepos:buttonOperateTag>
</form>
<div id="CustomVipColumn2D" align="center"></div>
<div id="customVipLine" align="center"></div>
  </body>
<%@include file="/common/chartHeader.jsp"%>
</html>